import java.util.Scanner;

//实现判断一个整数，属于哪个范围：大于零；小于零，等于零
public class Homework05 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int i = 5;
        while (i > 0) {
            System.out.println("请输入要判断的数字：");
            double digit = scanner.nextDouble();
            if (digit > 0) {
                System.out.println("该数字大于零！");
            }
            if (digit < 0) {
                System.out.println("该数字小于零！");
            }
            if (digit == 0) {
                System.out.println("该数字等于零！");
            }
            i--;
        }
    }
}
